package com.haydn.practice.restfulweb.config;

import com.haydn.practice.restfulweb.entity.Greeting;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author haydn
 * @create 2020/8/24 23:02
 */
@Component
@Order(3)
public class OrderAgain implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {

        Greeting greeting = new Greeting(100,"小娟");
        System.out.println(greeting);
        System.out.println("嗯嗯！");
    }
}
